package com.duoduo.admin.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.duoduo.admin.entity.SysUserRole;

public interface UserRoleRepository  extends JpaRepository<SysUserRole, SysUserRole.UserRoleId> {
    /**
     * Count by role id long.
     *
     * @param roleId the role id
     * @return the long
     */
    long countByRoleId(String roleId);

	List<SysUserRole> findByUserId(Long id);
}
